package org.jsola.hr.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.entity.BaseDeleteDO;
import org.jsola.core.entity.Key;

import java.math.BigDecimal;
import javax.persistence.Table;

/**
 * 用工单位销售
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "hr_company_sale_user")
@Key(UUID = true)
public class CompanySaleUserDO extends BaseDeleteDO<String> {

    private static final long serialVersionUID = 1L;

    /**
     * 用工单位id
     */
    private String companyId;
    /**
     * 销售人员userId
     */
    private String saleUserId;
    /**
     * 返费规则Id
     */
    private String rebatesRulesId;
    /**
     * 销售人员名称
     */
    private String saleName;
    /**
     * 分成比例 例如：33.33%存 0.3333
     */
    private BigDecimal dividedProportion;
    /**
     * 备注
     */
    private String remark;



}

